import Vue from 'vue'
import Router from 'vue-router'
import index from '@/vivew/index.vue'
import content from '@/vivew/content/content.vue'
import songsheet from '@/vivew/songsheet/songsheet.vue'
import singerdetails from '@/vivew/singerdetails/singerdetails.vue'
Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			redirect: '/content',
			meta: {
				keepAlive: true, //此组件不需要被缓存
			}
		},
		{
			path: '/index',
			name: 'index',
			meta: {
				keepAlive: true, //此组件不需要被缓存
			},
			component: index,
			children: [{
					path: '/content',
					name: 'content',
					component: content,
					meta: {
						keepAlive: true, //此组件不需要被缓存
					}
				},
				{
					path: '/songsheet',
					name: 'songsheet',
					component: songsheet,
					meta: {
						keepAlive: true, //此组件不需要被缓存
					}
				},
				{
					path: '/singerdetails',
					name: 'singerdetails',
					component: singerdetails,
					meta: {
						keepAlive: true, //此组件不需要被缓存
					}
				}
			]
		}
	]
})
